/**
 * @(#)ProcessReleaseNotesVO.java Dec 10, 2009
 *   
 * Copyright  (c) 2009-2010 Wilmar IT Service,  Inc.   
 * All  rights  reserved.   
 * TODO
 */

package com.wilmar.process.entity.vo;

import java.text.SimpleDateFormat;

import com.wilmar.process.core.ProcessSystemDeclareKeys;
import com.wilmar.process.entity.ProcessReleaseNotes;

/**
 * @author MaKuBEX Email:makubexnet@gmail.com
 * @version 1.0.0
 */
public class ProcessReleaseNotesVO extends AbstractValueObject implements
		ValueObject {

	/**
	 * @serialField
	 */
	private static final long serialVersionUID = 3895171034589868196L;

	private Long id;
	private String processDefinitionId;
	private String releaseNote;
	private String createPerson;
	private String createTime;
	private String outerSystem;
	private Integer version;

	public ProcessReleaseNotesVO(ProcessReleaseNotes processReleaseNotes) {
		SimpleDateFormat sdf = new SimpleDateFormat(
				ProcessSystemDeclareKeys.SYSTEM_LONG_DATE_FORMAT
						+ ProcessSystemDeclareKeys.SPACE
						+ ProcessSystemDeclareKeys.SYSTEM_LONG_TIME_FORMAT);
		this.id = processReleaseNotes.getId();
		this.processDefinitionId = processReleaseNotes.getProcessDefinitionId();
		this.releaseNote = processReleaseNotes.getReleaseNote();
		this.createPerson = processReleaseNotes.getCreatePerson();
		this.createTime = sdf.format(processReleaseNotes.getCreateTime());
		this.outerSystem = processReleaseNotes.getOuterSystem();
		this.version = processReleaseNotes.getVersion();
	}

	/**
	 * @return the id
	 */
	public Long getId() {
		return id;
	}

	/**
	 * @param id
	 *            the id to set
	 */
	public void setId(Long id) {
		this.id = id;
	}

	/**
	 * @return the processDefinitionId
	 */
	public String getProcessDefinitionId() {
		return processDefinitionId;
	}

	/**
	 * @param processDefinitionId
	 *            the processDefinitionId to set
	 */
	public void setProcessDefinitionId(String processDefinitionId) {
		this.processDefinitionId = processDefinitionId;
	}

	/**
	 * @return the releaseNote
	 */
	public String getReleaseNote() {
		return releaseNote;
	}

	/**
	 * @param releaseNote
	 *            the releaseNote to set
	 */
	public void setReleaseNote(String releaseNote) {
		this.releaseNote = releaseNote;
	}

	/**
	 * @return the createPerson
	 */
	public String getCreatePerson() {
		return createPerson;
	}

	/**
	 * @param createPerson
	 *            the createPerson to set
	 */
	public void setCreatePerson(String createPerson) {
		this.createPerson = createPerson;
	}

	/**
	 * @return the createTime
	 */
	public String getCreateTime() {
		return createTime;
	}

	/**
	 * @param createTime
	 *            the createTime to set
	 */
	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	/**
	 * @return the outerSystem
	 */
	public String getOuterSystem() {
		return outerSystem;
	}

	/**
	 * @param outerSystem
	 *            the outerSystem to set
	 */
	public void setOuterSystem(String outerSystem) {
		this.outerSystem = outerSystem;
	}

	/**
	 * @return the version
	 */
	public Integer getVersion() {
		return version;
	}

	/**
	 * @param version
	 *            the version to set
	 */
	public void setVersion(Integer version) {
		this.version = version;
	}
}
